package com.my12306.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my12306.user.model.po.PintegralEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @Author:苏牧夕
 * @Date:2020/6/19 23:10
 * @Version 1.0
 */
@Mapper
public interface PintegralDao extends BaseMapper<PintegralEntity> {
    /**
     * 添加或减少 积分
     *
     * @param userId
     * @param scopeValue
     * @param logicDelete
     * @param date
     */
    void updatePintegralByUserId(@Param("userId") Long userId, @Param("scopeValue") Long scopeValue, @Param("logicDelete") Integer logicDelete, @Param("date") Date date);
}
